package cn.tedu.spring.eg1;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created by IntelliJ IDEA.
 *
 * @author zq
 * @version 1.0
 * @create 2024-08-02 14:14
 * @since jdk1.8
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Component
@ToString
public class Product {
    @Value("手机")
    private String title;
    @Value("1000")
    private Integer number;
    @Value("小米")
    private String commit;
}
